package com.google.code.mochaccino.framework.rest.mime;
/*
 * Copyright 2012 Claude Houle claude.houle@gmail.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import javax.ws.rs.core.MediaType;

/** Pre-defined Mime Types */
public final class MimeTypes {

	private MimeTypes() {
	}

	public static final String TYPE_HTML       = MediaType.TEXT_HTML;
	public static final String TYPE_CSS        = "text/css";
	public static final String TYPE_JAVASCRIPT = "text/javascript";
	public static final String TYPE_XML        = MediaType.TEXT_XML;
	public static final String TYPE_CSV        = "text/csv";
	public static final String TYPE_PDF        = "application/pdf";
	public static final String TYPE_EXCEL      = "application/vnd.ms-excel";
	public static final String TYPE_TEXT       = MediaType.TEXT_PLAIN;
	public static final String TYPE_TAR        = "application/x-tar";
	public static final String TYPE_ZIP        = "application/zip";
	public static final String TYPE_GIF        = "image/gif";
	public static final String TYPE_JPG        = "image/jpg";
	public static final String TYPE_PNG        = "image/png";
	public static final String TYPE_ICO        = "image/vnd.microsoft.icon";

	public static final MimeType CSS  = new MimeType( ".css", TYPE_CSS );
	public static final MimeType LESS = new MimeType( ".less", TYPE_CSS );
	public static final MimeType JS   = new MimeType( ".js", TYPE_JAVASCRIPT );
	public static final MimeType HTML = new MimeType( ".html", TYPE_HTML );
	public static final MimeType XML  = new MimeType( ".xml", TYPE_XML );
	public static final MimeType CSV  = new MimeType( ".csv", TYPE_CSV );
	public static final MimeType PDF  = new MimeType( ".pdf", TYPE_PDF );
	public static final MimeType XLS  = new MimeType( ".xls", TYPE_EXCEL );
	public static final MimeType TXT  = new MimeType( ".txt", TYPE_TEXT );
	public static final MimeType TAR  = new MimeType( ".tar", TYPE_TAR );
	public static final MimeType ZIP  = new MimeType( ".zip", TYPE_ZIP );
	public static final MimeType GIF  = new MimeType( ".gif", TYPE_GIF );
	public static final MimeType JPEG = new MimeType( ".jpeg", TYPE_JPG );
	public static final MimeType JPG  = new MimeType( ".jpg", TYPE_JPG );
	public static final MimeType PNG  = new MimeType( ".png", TYPE_PNG );
	public static final MimeType ICO  = new MimeType( ".ico", TYPE_ICO );
}
